<div class="page-right">
            <div id="toolbar-box">
                    <div class="m">
                        <div class="pagetitle icon-48-cart">
                          <h2 style="width: 400px; text-indent: 0px;">Danh sách đơn hàng</h2> 
                        </div>
                    </div> <!-- End m -->
            </div><!-- End toolbar-box -->
        
        <div class="tablenav top">

    		<div class="alignleft actions" style="text-align: center;">
    			<input type="text" name="code" value="nhập số hóa đơn" size="20"/>
                <input type="submit" name="" id="doaction" class="button-secondary action" value="Tìm"  />
     		</div>
     		<div class="alignleft actions">
         		<input type="text" name="code" value="nhập tên khách hàng" size="20"/>
                <input type="submit" name="" id="doaction" class="button-secondary action" value="Tìm"  />
                <input type="text" name="code" value="nhập số điện thoại" size="20"/>
                <input type="submit" name="" id="doaction" class="button-secondary action" value="Tìm"  />
               <select name='cat' id='cat' class='postform' style="padding: 0px;" >
                  	<option value=''>Xem theo trạng thái</option>
                       <?php foreach($status as $stas){ ?>
                            <option value="<?php echo $stas->status_cart_id;?>" class="<?php if($stas->status_cart_id) print("selected=selected");?>"><?php echo $stas->status_cart_name;?></option>
                       <?php } ?>
               </select>
               <input type="text" name="code" value="nhập ngày đặt hàng" size="20"/>
                <input type="submit" name="" id="doaction" class="button-secondary action" value="Tìm"  />		
           </div>     	
    		<br class="clear" />
	   </div> <!-- End tablenav top -->
         <!-- BEGIN TABLE LIST -->   
                <form  name="adminForm" action="<?php echo base_url();?>admin/cart/action" method="post"> 
                    <table class="wp-list-table widefat fixed posts" cellspacing="0">
                	<thead>
                	<tr>
                        <th scope='col' class='manage-column'><span>Mã đơn hàng</span></th>
                        <th scope='col' class='manage-column'><span>Tên khách hàng</span></th>
                        <th scope='col'  class='manage-column'><span>Ngày đặt</span></th>
                        <th scope='col'  class='manage-column'><span>Đơn giá</span></th>
                        <th scope='col'  class='manage-column'><span>Trạng thái</span></th>
                        <th scope='col'  class='manage-column'><span>Thao tác</span></th>		
                    </tr>
                	</thead>
                	<tbody id="the-list">
                        <?php foreach($item as $items){ ?>
                				<tr id="post-1" class="post-1 post type-post status-publish format-standard hentry category-uncategorized alternate iedit author-self" valign="top">
                    			
               						<td class="post-title page-title column-title"><strong><a class="row-title" href="<?php echo base_url();?>admin/cart/detail/<?php echo $items->cart_id;?>"><?php echo $items->cart_code;?></a></strong>
                                    </td>
                                    <td class="author column-author">
                                        <?php echo $items->customer_name;?>
                                    </td>
                                    <td class="author column-author">
                                        <?php echo $items->cart_day;?>
                                    </td>
                                    <td class="author column-author">
                                        <?php echo number_format($items->cart_total_price,0);?>
                                    </td>
               						<td class="author column-author" align="left">
                                        <select id="cat_id" name="cat_id" style="padding: 0px;">
                                            <?php foreach($status as $stas){ ?>
                                            <option value="<?php echo $stas->status_cart_id;?>" class="<?php if($stas->status_cart_id) print("selected=selected");?>"><?php echo $stas->status_cart_name;?></option>
                                            <?php } ?>
                                        </select>
                                       
                                    </td>	
                                  <td class="author column-author" align="left">
                                        <a href="<?php echo base_url();?>admin/cart"><img src="<?php echo base_url();?>public/images/admin/cancelcart.png" width="32" height="32" title="Hủy đơn hàng"/></a>
                                    </td>  
                            </tr>
                            <?php } ?>
                		</tbody>
                        <input type="hidden" value="" name="boxchecked" id="boxchecked"/>
                        <input type="hidden" value="" name="task"/>
                </table>
                <!-- END TABLE LIST -->   
        </form>
</div> <!-- End page-right -->